<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>出入证列表</title>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx }/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx }/scripts/public3.js"></script>

<script type="text/javascript">
	function resize(){
		parent.window.document.all('passList').style.height=document.body.scrollHeight;
	}

	function setPassId(passId){  //设置passId
		findFrame('passSendMainIfm').passId = passId;
	}
</script>
</head>
<body onload="resize();" >

<div style="overflow:auto;height: 220px;">
	<ec:ceTable items="passList"
				var="item"
				action=""
				rowsDisplayed="${totalRows}"
				width="100%"
				view="pmsNoPageView"
				sortable="false"
				styleClass="gridData"
			>
		<ec:ceRow styleClass="grid" onclick="setPassId('${item.keyword}')"  onContextMenu="return ShowContextMenu(event,'quick_rightmenu2');">
			<ec:ceColumn width="6%" property="#" headerCell="pmsHeadrCell"   cell="rowCount" title="序 号" />
			<ec:ceColumn width="10%"  property="name" headerCell="pmsHeadrCell"  title="姓 名" />
			<ec:ceColumn width="6%"  property="sex" headerCell="pmsHeadrCell"  title="性 别">
				<c:if test="${item.sex == '1' }">男</c:if>
				<c:if test="${item.sex == '0' }">女</c:if>
			</ec:ceColumn>
			<ec:ceColumn width="10%"  property="workTypeView" headerCell="pmsHeadrCell" title="工 种"/>
			<ec:ceColumn width="15%"  property="passNumber" headerCell="pmsHeadrCell" title="出入证号"/>
			<ec:ceColumn width="22%"  property="beginDate" headerCell="pmsHeadrCell" title="有效期" >
				<fmt:formatDate pattern="yyyy-MM-dd" value="${item.beginDate}"/>&nbsp;至&nbsp;<fmt:formatDate pattern="yyyy-MM-dd" value="${item.endDate }"/>
			</ec:ceColumn>
			<ec:ceColumn width="15%"  property="identityCard" headerCell="pmsHeadrCell"  title="身份证号码" />
			<ec:ceColumn width="7%"  property="chargeFeeSum" headerCell="pmsHeadrCell" title="金 额" />
			<ec:ceColumn width="8%"  property="chargeFeeStateView" headerCell="pmsHeadrCell" title="收费状态" />
		</ec:ceRow>
	</ec:ceTable>
</div>


<div id="quick_rightmenu2" style="display:none;" oncontextmenu="return false" class="quick_menu2" onMouseOver="showmy2menu('quick_rightmenu2')"  onMouseOut="hidden2menu('quick_rightmenu2')" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openPassAdd();"onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" alt="新建" width="16" height="16" border="0" align="absbottom" /> 新 建</a></td>
        </tr>
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.checkPassEdit();"onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" border="0" align="absbottom" alt="修改"/> 修 改</a></td>
        </tr>
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.checkPassDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /> 删 除</a></td>
        </tr>
      </table></td>
    </tr>
  </table>
</div>
</body>
</html>
